home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14442 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  33 lines

  1. Newsgroups: comp.lang.ada,comp.lang.c++
  2. Path: in2.uu.net!world!bobduff
  3. From: bobduff@world.std.com (Robert A Duff)
  4. Subject: Re: some questions re. Ada/GNAT from a C++/GCC user
  5. Message-ID: <Dp3G4u.KEA@world.std.com>
  6. Organization: The World Public Access UNIX, Brookline, MA
  7. References: <wnewmanDoxrCp.DKv@netcom.com> <4je9ju$174r@watnews1.watson.ibm.com> <ROGOFF.96Mar28134118@sccm.Stanford.EDU> <4jhe1v$m0g@dayuc.dayton.saic.com>
  8. Date: Sat, 30 Mar 1996 18:46:06 GMT
  9.  
  10. In article <4jhe1v$m0g@dayuc.dayton.saic.com>,
  11. John G. Volan  <John_Volan@ccmail.dayton.saic.com> wrote:
  12. >A C programmer would complain about having to introduce an extra
  13. >begin/end block in order to introduce variables.  Isn't the scope
  14. >of a variable well-defined in C, even without this extra baggage?
  15. >It just extends from the declaration to the end of whatever block
  16. >you're already in.
  17.  
  18. Well, at least one Ada programmer (namely, me) would agree with the C
  19. programmer in this case.
  20.  
  21. >An Ada programmer would counter that, in Ada, some variables might be
  22. >instances of _task_ types. ...
  23.  
  24. Sorry to keep disagreeing with you, John, but this seems like the tail
  25. wagging the dog.  If the reason I'm required to add 3 extra junk lines
  26. of code, just to declare a simple variable, is because of tasks, then
  27. that's just poor language design.  If you need a place to activate the
  28. tasks, fine, put in an "Activate_Tasks_Here" statement.  Don't
  29. complicate the job for some poor guy who has no tasks, and just wants to
  30. declare an Integer or String variable.
  31.  
  32. - Bob
  33.